package com.hcb.micro.service;

import java.util.List;
import java.util.Map;

import com.hcb.micro.dto.Product;
import com.hcb.micro.dto.Union;

public interface IProductService {
	
    public int deleteByPrimaryKey(Integer fakeId);
    
    public int insert(Product record);
    
    public int insertSelective(Product record);
    
    public Product selectByPrimaryKey(Integer fakeId);
    
    public int updateByPrimaryKeySelective(Product record);
    
    public int updateByPrimaryKey(Product record);
    
    public List<Product> selectByPara(Map<String,Object> para);
    
    public int insertProductLog(Map<String, Object> para);
    
    List<Map<String, Object>> selectProLogByPara(Map<String, Object> para);
    
    Map<String, Object> selectProLogById(Integer id);
    
    int delProPriLog(Integer id);
    
    int updateProPriLog(Map<String,Object> map);
    
    int delProPriLogByProductId(Integer productId);
    
    /**
     * 查询出微店个人商品
     * @param para
     * @return
     */
    List<Map<String, Object>>  selectToApply(Map<String,Object> para);
    
    
    /**
     * 是否同意个人商品上传申请
     * @param id
     * @return
     */
    int updateById(Map<String, Object> para);
}
